<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <style>
    .container {
      width: 300px;
      height: 300px;
      overflow: hidden;
    }

    .box {
      width: 300px;
      height: 300px;
      background: url("/src/img/transform/music.jpg") no-repeat center;
      transform: scale(1, 1);
      transition: transform .8s ease-in-out;
      overflow: hidden;
    }

    .box:hover {
      transform: scale(1.2, 1.2);
    }

    .box .mask {
      width: 300px;
      height: 300px;
      background-color: rgba(0, 0, 0, 0.4);
      position: relative;
      opacity: 0;
      transition: opacity 0.5s;
    }

    .box:hover .mask{
        opacity: 1;
    }

    .mask::after {
      content: "";
      display: block;
      position: absolute;
      width: 40%;
      height: 40%;
      background:url("/src/img/transform/play.png") no-repeat center;
      background-size: cover;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%)
    }
  </style>
  <body>
    <div class="container">
        <div class="box">
            <div class="mask"></div>
          </div>
    </div>
  </body>
</html>
